From c6d83ccc90166d5d0285ac80a7c8cb30e2f1fa35 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 22 Oct 2005 07:43:56 +0100 Subject: [PATCH] Fix assertions in bitops.c. Signed-off-by: Aravindh Puthiyaparambil --- xen/arch/x86/bitops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/bitops.c b/xen/arch/x86/bitops.c index 695a609a23..639d82d830 100644 --- a/xen/arch/x86/bitops.c +++ b/xen/arch/x86/bitops.c @@ -29,7 +29,7 @@ unsigned int __find_next_bit( const unsigned long *p = addr + (offset / BITS_PER_LONG); unsigned int set, bit = offset & (BITS_PER_LONG - 1); - ASSERT(offset < size); + ASSERT(offset <= size); if ( bit != 0 ) { @@ -78,7 +78,7 @@ unsigned int __find_next_zero_bit( const unsigned long *p = addr + (offset / BITS_PER_LONG); unsigned int set, bit = offset & (BITS_PER_LONG - 1); - ASSERT(offset < size); + ASSERT(offset <= size); if ( bit != 0 ) { -- 2.30.2